const sequelize = require('../db/index.js')
// var initModels = require('./src/models/init-models')
//  initModels(sequelize)

// console.log(models)
async function syncTable() {
  await sequelize.sync({ alter: true });
  console.log("用户模型表刚刚(重新)创建！");
  sequelize.close()
}
async function deleteAllTable() {
  await sequelize.drop();
  console.log('所有表已经删除')
  sequelize.close()
}
// deleteAllTable()
syncTable()

// (async () => {
//     await sequelize.sync({ force: true });
//     // 这里是代码
//   })();